package com.zero.feign;

import com.zero.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("STORAGE-SERVICE")
public interface StorageFeign {

    @RequestMapping("/storage/deduct/{goodsId}/{count}")
    Result deductStorage(@PathVariable("goodsId") int goodsId, @PathVariable("count") int count);
}
